package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) UserResetPwd(ctx context.Context, req *v1.UserResetPwdReq) (res *v1.UserResetPwdRes, err error) {
	res = &v1.UserResetPwdRes{}
	err = service.SysUser().ResetPwd(ctx, req.Id, req.Password)
	return
}
